<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
</head>

<body>
    <div id="app">
        <table>
            <tr v-for="(item,index) in list" :key="index">
                <td>{{item.id}}</td>
                <td>{{item.name}}</td>
               <td>
                <button @click="add">添加</button>
                <button @click="del(item.id)">添加</button>
               </td>
            </tr>
        </table>
        id:<input type="text" v-model="id" id="id">
        name:<input type="text" v-model="name">
       
    </div>
    <script>
        var vm=new Vue({
           el:'#app',
           data:{
               id:'',
               name:'',
            list:[
                   {"id":1,"name":"灿星学习平台","date":Date()},
                   {"id":2,"name":"灿星学习平台","date":Date()},
                   {"id":3,"name":"灿星学习平台1","date":Date()},
                   {"id":4,"name":"灿星学习平台1","date":Date()},
                   {"id":5,"name":"灿星学习平台1","date":Date()},
                   {"id":6,"name":"灿星学习平台1","date":Date()},
                   {"id":7,"name":"灿星学习平台1","date":Date()},
                   {"id":8,"name":"灿星学习平台1","date":Date()},
                   {"id":9,"name":"灿星学习平台1","date":Date()},
               ]
           },
           methods:{
        add:function(){
            this.list.push({"id":this.id,"name":this.name})
        },
        del:function(id){
       this.list.splice(id,1)//删除list的对应行当然index也可以
        }
           }
        });
    </script>
</body>

</html>